package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	dev "hashboard/internal/device"
)

func main() {
	mem := dev.GetMem()

	var formattedJSON bytes.Buffer

	err := json.Indent(&formattedJSON, mem, "", "   ")
	if err != nil {
		fmt.Println("Error formatting JSON:", err)
		return
	}

	fmt.Println(formattedJSON.String())
}
